package com.cjc.hotel.server.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author chenjuncai
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class  Result<T> {
    private Integer code;
    private String msg;
    private T data;
    public Result<T> setCode(int code) {
        this.code = code;
        return this;
    }
    public Result<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }
    public Result<T> setData(T data) {
        this.data = data;
        return this;
    }
}
